Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding l2g features to prediction table #899

Merged
merged 7 commits into from
Nov 5, 2024
Merged

Conversation

DSuveges
Copy link
Contributor

@DSuveges DSuveges commented Nov 5, 2024

A simple extension of the l2g step to add feature matrix to l2g prediction table. As such the following updates were made:

  • Schema of l2g prediction is updated to have an extra optional column to contain features as a map.
  • l2g prediction dataset is extended with a method to enrich dataset with the provided features.
  • l2g step is extended with calling the above method.

@github-actions github-actions bot added size-S and removed size-M labels Nov 5, 2024
@github-actions github-actions bot added size-M and removed size-S labels Nov 5, 2024
feature_matrix._df.withColumn(
"locusToGeneFeatures",
f.create_map(
*sum(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨 I would not think of the expression like `sum(List[Tuple[Col, Col]], Tuple[]). Nice, although i it seems to be the way to flatten. https://stackoverflow.com/questions/10632839/transform-list-of-tuples-into-a-flat-list-or-a-matrix

@DSuveges DSuveges merged commit 94abc79 into dev Nov 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enrich locus to gene prediction dataset with features
2 participants